/*
 * Copyright (c) 2008-2013 Haulmont. All rights reserved.
 * Use is subject to license terms, see http://www.cuba-platform.com/license for details.
 */

package com.haulmont.asu.entity;

import com.haulmont.cuba.core.entity.BaseUuidEntity;

import javax.persistence.*;

/**
 * Author: Sergey42
 * Date: 01.12.13 19:27
 */
@Table(name = "EXT_TOTAL_MARK")
@Entity(name = "ext$TotalMark")
public class TotalMark extends BaseUuidEntity {

    private static final long serialVersionUID = -7337726555917376293L;

    @ManyToOne
    @JoinColumn(name = "DIPLOMA_STUDENT_ID")
    protected DiplomaStudent diplomaStudent;

    @ManyToOne
    @JoinColumn(name = "BLANK_ID")
    protected CommissionTotalBlank blank;

    @Column(name = "REPORT_MARK")
    protected Integer reportMark;

    @Column(name = "QUESTION_MARK")
    protected Integer questionMark;

    @Column(name = "IMAGE_MARK")
    protected Integer imageMark;

    @Column(name = "TOTAL_MARK")
    protected Integer totalMark;

    @Column(name = "RECOMMENDATION", length = 100)
    protected String recommendation;

    public DiplomaStudent getDiplomaStudent() {
        return diplomaStudent;
    }

    public void setDiplomaStudent(DiplomaStudent diplomaStudent) {
        this.diplomaStudent = diplomaStudent;
    }

    public CommissionTotalBlank getBlank() {
        return blank;
    }

    public void setBlank(CommissionTotalBlank blank) {
        this.blank = blank;
    }

    public Integer getReportMark() {
        return reportMark;
    }

    public void setReportMark(Integer reportMark) {
        this.reportMark = reportMark;
    }

    public Integer getQuestionMark() {
        return questionMark;
    }

    public void setQuestionMark(Integer questionMark) {
        this.questionMark = questionMark;
    }

    public Integer getImageMark() {
        return imageMark;
    }

    public void setImageMark(Integer imageMark) {
        this.imageMark = imageMark;
    }

    public Integer getTotalMark() {
        return totalMark;
    }

    public void setTotalMark(Integer totalMark) {
        this.totalMark = totalMark;
    }

    public String getRecommendation() {
        return recommendation;
    }

    public void setRecommendation(String recommendation) {
        this.recommendation = recommendation;
    }
}
